{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
{/strip}

{if $smarty.get.id2}
    {strip}
    <script src="{$siteroot}/includes/js/admin/addjobtype.js" type="text/javascript"></script>
    {/strip}
{else}
	{strip}
	<script src="{$siteroot}/includes/js/admin/addtrade_cat.js" type="text/javascript"></script>
    {/strip}
{/if}    

{include file=$header_end}
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">            	                
            {if $msg}{$msg}{/if}
            	<section class="title_box">
                    <h4>{if $smarty.get.id2 neq ''} Add Job Type for "{$parentArray.trade_category|ucfirst}" {else}Add Trade Category{/if} </h4>
                    <section class="clear"></section>
                </section>
                <form method="post" action="" name="frmFaq" id="frmFaq" >                

                <section class="profile_wrapp">
                
	                <dl>
                        <dt><label>{if $smarty.get.id2}Job Type {else}Cateogry Name{/if} </label></dt>
                        <dd><input type="text" class="input" name="cat_name" id="cat_name"  value="{$smarty.post.cat_name}"></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>                    
                    
                    
                    <section class="bt_save_wrapp">
                    	<input type="submit" value="Save" name="addtrade_btn" id="addtrade_btn" class="bt_save"/>
                        <input type="button" value="Cancel" name="cancel_btn" id="cancel_btn" class="bt_save" {if $smarty.get.id1 && $smarty.get.id2} onclick="window.location.href='{$siteroot}/myaccount/{$smarty.get.id1}/{$smarty.get.id2}/mytradecategory/'" {else} onclick="window.location.href='{$siteroot}/myaccount/mytradecategory/'" {/if}/>
                    </section>

                </section>                
                </form>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
